<div class="wrap">
    <div class="header">
        <?php echo $this->partial('header'); ?>	     
        <div class="header_slide">
            <div class="header_bottom_left">				
                <?php echo $this->partial('category'); ?>
                <?php echo $this->partial('product-maker'); ?>
                <?php echo $this->partial('price-step'); ?>
            </div>
            <div class="header_bottom_right">
                <div class="content_top">
                    <div class="back-links">
                        <p>
                            <a href="<?php echo $this->url('home'); ?>">Trang chủ</a> &gt;&gt;&gt;&gt;
                            <a>
                                <?php foreach ($aryCategory as $key => $category) { ?>
                                    <?php if ($category['category_id'] == $category_id) { ?>
                                        <?php echo $category['category_name']; ?>
                                    <?php } ?>
                                <?php } ?>
                            </a>
                            <?php if (isset($maker_name) && $maker_name != 'all') { ?>
                                &gt;&gt;&gt;&gt;<a style="text-transform: capitalize"><?php echo $maker_name; ?></a>
                            <?php } ?>
                        </p>
                    </div>
                    <div class="price-order order-down">
                        <p>
                            <a class="<?php echo ($order == 'DESC') ? 'active' : ''; ?>" href="<?php
                            echo $this->url('product/product-by-category', array(
                                'cat_id' => $category_id,
                                'cat_name' => $category_filter,
                                'order_by' => 'down',
                                'maker_name' => $maker_name,
                                'price_step' => $price_step,
                                'page' => $current_page
                            ));
                            ?>">Giá</a>
                        </p>
                    </div>
                    <div class="price-order order-up">
                        <p>
                            <a class="<?php echo ($order == 'ASC') ? 'active' : ''; ?>" href="<?php
                            echo $this->url('product/product-by-category', array(
                                'cat_id' => $category_id,
                                'cat_name' => $category_filter,
                                'maker_name' => $maker_name,
                                'price_step' => $price_step,
                                'order_by' => 'up',
                                'page' => $current_page
                            ));
                            ?>">Giá</a>
                        </p>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="section group">
                    <?php foreach ($aryProduct as $key => $product) { ?>
                        <div class="grid_1_of_4 images_1_of_3 <?php echo ($key % 3 == 0) ? 'no-margin' : '' ?>">
                            <a href="<?php echo $this->url('product/product-detail', array('product_id' => $product['product_id'], 'product_name' => $product['product_name_filter'] . '.html')); ?>">
                                <img alt="<?php echo $product['product_name']; ?>"  src="/upload/images/thumb/<?php echo $product['product_image']; ?>">
                            </a>
                            <h2><a href="<?php echo $this->url('product/product-detail', array('product_id' => $product['product_id'], 'product_name' => $product['product_name_filter'] . '.html')); ?>"><?php echo $product['product_name']; ?></a></h2>
                            <div class="price-details">
                                <?php if ($product['product_price_sale_of']) { ?>
                                    <div class="price-number">
                                        <p><span class="rupees"><?php echo number_format($product['product_price_sale_of'], 0, ',', '.') ?>₫</span></p>
                                    </div>
                                    <div class="add-cart">								
                                        <h4><a><?php echo number_format($product['product_price'], 0, ',', '.') ?>₫</a></h4>
                                    </div>
                                <?php } else { ?>
                                    <div class="add-cart">								
                                        <h4><a><?php echo number_format($product['product_price'], 0, ',', '.') ?>₫</a></h4>
                                    </div>
                                <?php } ?>
                                <div class="clear"></div>
                            </div>
                        </div>
                    <?php } ?>
                </div>
                <?php
                echo $this->paginationControl($this->aryProduct, 'Sliding', 'product/_product-paginator.phtml', array(
                    'route' => 'product/product-by-category',
                    'cat_id' => $category_id,
                    'cat_name' => $category_filter,
                    'order' => $order_by,
                    'maker_name' => $maker_name,
                    'price_step' => $price_step
                ));
                ?>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>